package com.crm.model.dto;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.crm.uilt.DataView;
import com.fasterxml.jackson.annotation.JsonView;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zjd
 * @since 2021-04-01
 */
@Data
@Accessors(chain = true)
@ApiModel(value="UserDTO", description="UserDTO")
public class UserDTO {

    private static final long serialVersionUID = 1L;

    @JsonView(DataView.Basic.class)
    private Long id;

    @JsonView(DataView.Basic.class)
    private String name;

    @JsonView(DataView.Basic.class)
    private String phone;

    @JsonView(DataView.Company.Login.class)
    private String passWord;

    @JsonView(DataView.Basic.class)
    private String email;

    @JsonView(DataView.Company.Login.class)
    @ApiModelProperty(value = "父用户id")
    private Long parentId;

    @JsonView(DataView.Company.Login.class)
    @ApiModelProperty(value = "账户状态")
    private Long state;


    @JsonView(DataView.Company.Default.class)
    private Date createTime;
    @JsonView(DataView.Company.Default.class)
    private Date updateTime;






}
